//
//  FollowViewController.h
//  XPhoto
//
//  Created by baboy on 2019/8/9.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <BKKit/BKViewController.h>
#import "UIScrollView+x.h"
#import "UserFollow.h"

NS_ASSUME_NONNULL_BEGIN


@interface FollowingTableView:UITableView<UITableViewDelegate, UITableViewDataSource,BKScrollViewDragRefreshDelegate>
@property(nonatomic, strong) NSMutableArray<User*> *items;
@property(nonatomic, assign) NSInteger uid;
@property(nonatomic, strong) IBOutlet UIViewController *controller;
- (void)searchWithOffset:(NSInteger)offset;

@end
@interface FanTableView : FollowingTableView

@end
@interface FollowViewController : BKViewController
@property(nonatomic, assign) NSInteger uid;
@property(nonatomic, strong) IBOutlet UIView *topView;;
@property(nonatomic, strong) IBOutlet UISegmentedControl *segmentedControl;

@property(nonatomic, strong) IBOutlet FollowingTableView *followTableView;
@property(nonatomic, strong) IBOutlet FanTableView *fanTableView;

@property(nonatomic, strong) IBOutlet UIScrollView *scrollView;
@property(nonatomic, assign) NSInteger selectedIndex;

- (IBAction)selectedIndexChanged:(UISegmentedControl *)segmentedControl;
@end

NS_ASSUME_NONNULL_END
